import Layout from "@/layout";

export default [
  {
    path: '/',
    redirect: "/dashboard/workspace",
    hidden: true,
  },
  {
    path: '/login',
    component: () => import('@/view/login/index.vue'),
    meta: {
      title: '登录'
    },
    hidden: true,
  },
  {
    path: '/retrievePassWord',
    component: () => import('@/view/retrievePassWord/index.vue'),
    meta: {
      title: '重置密码'
    },
    hidden: true,
  },
  {
    path: '/error/403',
    component: () => import('@/view/error/404.vue'),
    meta: {title: '404'},
    hidden: true,
  },
  {
    path: '/error/404',
    component: () => import('@/view/error/404.vue'),
    meta: {
      title: '404'
    },
    hidden: true,
  },
  {
    path: '/error/500',
    component: () => import('@/view/error/404.vue'),
    meta: {
      title: '500'
    },
    hidden: true,
  },
  {
    path: '/profile',
    component: () => Layout,
    children: [
      {
        path: '/profile/index',
        component: () => import('@/view/profile/index.vue'),
        meta: {
          title: '准备考试',
          i18n: 'profileIndex'
        }
      },
      {
        path: '/exam/exam',
        component: () => import('@/view/paper/exam/exam.vue'),
        meta: {
          title: '开始考试',
          i18n: 'examExam'
        }
      },{
        path: '/book/index',
        component: () => import('@/view/paper/book/index.vue'),
        meta: {
          title: '错题列表',
          i18n: 'bookIndex'
        }
      },{
        path: '/exam/result',
        component: () => import('@/view/paper/exam/result.vue'),
        meta: {
          title: '考试结果',
          i18n: 'examResult'
        }
      },{
        path: '/book/train',
        component: () => import('@/view/paper/book/train.vue'),
        meta: {
          title: '错题训练',
          i18n: 'bookTrain'
        }
      },{
        path: '/topic/modal/users',
        component: () => import('@/view/topic/modal/users.vue'),
        meta: {
          title: '考试人员',
          i18n: 'examUsers'
        }
      },{
        path: '/scan/comm/details/experimentalDetails',
        component: () => import('@/view/scan/comm/details/experimentalDetails.vue'),
        meta: {
          title: '仿真详情',
          i18n: 'experimentalDetails'
        }
      },{
        path: '/scan/comm/details/details',
        component: () => import('@/view/scan/comm/details/details.vue'),
        meta: {
          title: '详情页',
          i18n: 'detailsdetails'
        }
      },
    ],
    hidden: true,
  },
  {
    path: '/preview',
    component: () => Layout,
    children: [
      {
        path: '/preview/index',
        component: () => import('@/view/paper/exam/preview.vue'),
        meta: {
          title: '个人详情',
          i18n: 'profile'
        }
      }
    ],
    hidden: true,
  },
]
